<include file="public@header"/>
</head>
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a >用户举报分类</a></li>
			<li><a href="{:url('Report/classify_add')}">添加</a></li>
		</ul>
		<form class="well form-inline margin-top-20" method="post" action="{:url('Report/classify')}">
		关键字：
        <input class="form-control" type="text" name="keyword" style="width: 200px;" value="{:input('request.keyword')}"
               placeholder="分类名称">
        <input type="submit" class="btn btn-primary" value="搜索"/>
        <a class="btn btn-danger" href="{:url('Admin/Report/classify')}">清空</a>
		</form>
		<form method="post" class="js-ajax-form" action="{:url('Report/classify_listorders')}">
			<div class="table-actions">
				<button class="btn btn-primary btn-small js-ajax-submit" type="submit">{:lang('SORT')}</button>
			</div>
			<table class="table table-hover table-bordered">
				<thead>
					<tr>
						<th>序号</th>
						<th align="center">ID</th>
						<th>分类名称</th>
						<th>添加时间</th>
						<th>修改时间</th>
						<th align="center">{:lang('ACTIONS')}</th>
					</tr>
				</thead>
				<tbody>
					<php>$isdel=array("0"=>"否","1"=>"是");</php>
					<foreach name="lists" item="vo">
					<tr>
						<td><input name="listorders[{$vo['id']}]" type="text" size="3" value="{$vo['orderno']}" class="input input-order"></td>
						<td align="center">{$vo.id}</td>
						<td>{$vo['title']}</td>
						<td>{:date('Y-m-d H:i:s',$vo['addtime'])}</td>
						<td><if condition="$vo['updatetime'] neq '0'">{:date('Y-m-d H:i:s',$vo['updatetime'])}<else />--</if></td>
						<td align="center">

							<a class="btn btn-xs btn-primary" href="{:url('Report/classify_edit',array('id'=>$vo['id']))}">编辑</a>
							<a class="btn btn-xs btn-danger js-ajax-delete" href="{:url('Report/classify_del',array('id'=>$vo['id']))}">删除</a>
							
						</td>
					</tr>
					</foreach>
				</tbody>
			</table>
			<div class="pagination">{$page}</div>
			
		</form>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>